package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

public class IndexActivity extends AppCompatActivity implements CallBacks {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_index);

    }

    @Override
    public void onItemSelected(int position) {
        Intent intent ;
        switch (position){
            case 0 : intent = new Intent(this,Main2Activity.class);
            startActivity(intent);
            case 1 : intent = new Intent(this, addActivity.class);
                startActivity(intent);
            case 2 : intent = new Intent(this,Main2Activity.class);
                startActivity(intent);
            case 3 : intent = new Intent(this,Main2Activity.class);
                startActivity(intent);
            case 4 : intent = new Intent(this,Main2Activity.class);
                startActivity(intent);
            case 5 : intent = new Intent(this,Main2Activity.class);
                startActivity(intent);
        }
    }
}
